package jedi.modulo1.licao06.exercicio01;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import javax.swing.JOptionPane;

public class Notas
{
	public static void main(String[] args)
	{
		int nota1 = 0, nota2 = 0, nota3 = 0;
		
		// Com BufferedReader
		/*
		BufferedReader dataIn = new BufferedReader( new InputStreamReader( System.in ) );
		try
		{
			System.out.print("Nota 1: ");
			nota1 = Integer.parseInt( dataIn.readLine() );
			System.out.print("Nota 2: ");
			nota2 = Integer.parseInt( dataIn.readLine() );
			System.out.print("Nota 3: ");
			nota3 = Integer.parseInt( dataIn.readLine() );
		} catch (Exception e) {
			e.printStackTrace();
		}
		*/
		
		
		// Com Scanner
		/*
		Scanner leitor = new Scanner( System.in );
		System.out.print("Nota 1: ");
		nota1 = leitor.nextInt();
		System.out.print("Nota 2: ");
		nota2 = leitor.nextInt();
		System.out.print("Nota 3: ");
		nota3 = leitor.nextInt();
		*/
		
		// Com JOptionPane
		/*
		nota1 = Integer.parseInt( JOptionPane.showInputDialog("Nota 1 :") );
		nota2 = Integer.parseInt( JOptionPane.showInputDialog("Nota 2 :") );
		nota3 = Integer.parseInt( JOptionPane.showInputDialog("Nota 3 :") );
		*/
		
		if( ( nota1 + nota2 + nota3 )/3.0 >= 60 )
			System.out.println(":)");
		else System.out.println(":(");
	}
}
